package com.aios.action.timer;

import org.apache.log4j.Logger;

public class TimerViewAction extends AbstractTimerAction {
	
	private static final long serialVersionUID = 1L;
	private static Logger logger = Logger.getLogger(TimerViewAction.class);

	public String execute(){
		try{
			this.timer = timerService.findById(id);
			
		}catch(Exception e){
			logger.error(e);
			addActionError(getText("error.timer.notfound"));
			return INPUT;
		}
		
		return SUCCESS;
		
	}

}
